package spring6.iocxml.beanDao;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestUserDao {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("bean.xml");
//        根据接口（具有多个实现类） 无法得到bean
//        UserDao userDao = context.getBean(UserDao.class);
//        System.out.println(userDao);
//        userDao.run();
    }
}
